//
//  Array+Extension.swift
//  SwiftProject
//
//  Created by qindong on 2021/6/9.
//

import Foundation

extension Array {
    var toJSONString : String {
        if let data = try? JSONSerialization.data(withJSONObject: self, options: .prettyPrinted) {
            return String(data: data, encoding: .utf8)!
        }
        return ""
    }
}
